package lab02.test04;

public class Employee {
    String name;
    String number;
    int salary;
    int salaryGrowth;   //定义员工的基本属性，有姓名，工号，基本工资，工资增长额

    public Employee() {

    }

    public void setBasicInformation(String name, String number, int salary, int salaryGrowth) {
        this.name = name;
        this.number = number;
        this.salary = salary;
        this.salaryGrowth = salaryGrowth;
    }                                                //此方法获得员工的基本基本信息

    public String getName() {
        return name;
    }

    public String getNumber() {
        return number;
    }

    public int getSalary() {
        return salary;
    }

    public int getSalaryGrowth() {
        return salaryGrowth;
    }

    public void getTotalwages() {
        int totalwages = salary + salaryGrowth;
        System.out.println("总工资:" + totalwages);      //此方法返回员工的总工资
    }
}
